﻿<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:msxsl="urn:schemas-microsoft-com:xslt" exclude-result-prefixes="msxsl" >
  <xsl:output method="xml" indent="yes"/>
  <xsl:template match="/">
    <xsl:for-each select="Prizes/Prize">
      <div class="prize">
        <table border="0" cellspacing="0" cellpadding="0" width="100%" height="100%">
          <tr>
            <td height="90">
              <div style="padding-top:1px;" align="center">
                <xsl:attribute name="title"><xsl:value-of select="concat('cssbody=[dvbdy] cssheader=[dvhdr] body=[',Description,'] hideselects=[on]','')"/></xsl:attribute>
                <a>
                  <xsl:attribute name="ID">
                    <xsl:value-of select="@ID"/>
                  </xsl:attribute>
                  <xsl:value-of select="Text"/>
                </a>
              </div>
            </td>
          </tr>
          <tr>
            <td>
              <div align="center">
                <img src="~/images/ClaimButton.jpg" alt="Claim" title="Claim" style="cursor:pointer;width:70px;margin-top:20px;" >
                  <xsl:choose>
                    <xsl:when test="@popup">
                      <xsl:attribute name="onclick">
                        <xsl:value-of select="concat('Profile(',@ID,',&quot;',@popup,'&quot;);')"/>
                      </xsl:attribute>
                    </xsl:when>
                    <xsl:otherwise>
                      <xsl:attribute name="onclick">
                        <xsl:value-of select="concat('Profile(',@ID,',0);')"/>
                      </xsl:attribute>
                    </xsl:otherwise>
                  </xsl:choose>
                 
                </img>
              </div>
            </td>
          </tr>
        </table>
      </div>
    </xsl:for-each>
  </xsl:template>
</xsl:stylesheet>
